home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 23 / develop Issue 23 code / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / ExternalCheckIn.r < prev    next >
Encoding:
Text File  |  1995-07-24  |  5.8 KB  |  207 lines  |  [TEXT/MPS ]

  1. /* ExternalCheckIn.r: External CheckIn applet resources for ProjectDrag
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "ExternalCheckIn.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a non-Projector file onto this icon to check it in, "
  27.             "overwriting a checked-in file in the source folder. You "
  28.             "will be asked to find the file to overwrite."
  29.         },
  30.     }
  31. };
  32.  
  33.  
  34.  
  35. /* Menus & Menu Help Resources */
  36. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  37.     {    /* array: 2 elements */
  38.         /* [1] */    "About External CheckIn…", noIcon, noKey, noMark, plain,
  39.         /* [2] */    "-", noIcon, noKey, noMark, plain
  40.     }
  41. };
  42.  
  43. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  44.     {    /* array: 2 elements */
  45.         /* [1] */    "Check External File In…",    noIcon, "O", noMark, plain,
  46.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  47.     }
  48. };
  49.  
  50. resource 'DITL' (128, purgeable) {
  51.     {    /* array DITLarray: 3 elements */
  52.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  53.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  54.             "External CheckIn - ProjectDrag's applet for checking in files "
  55.             "from an external source. By Tim Maroney. " },
  56.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  57.     }
  58. };
  59.  
  60. /* Here are the STR#'s that the Help text is stored in! */
  61. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  62.     { /* array StringArray: 3 elements */
  63.         /* [1] */     "Everything you always wanted to know about External CheckIn, but were afraid to ask",
  64.         /* [2] */     "Click here to dismiss this dialog.",
  65.         /* [3] */     "This text describes the product, its author, and why!"
  66.     }
  67. };
  68.  
  69. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  70.     { /* array StringArray: ? elements */
  71.         /* [1] */    "Use this menu to check an external file in and to exit External CheckIn.",
  72.         /* [2] */     "Use this menu to check an external file in and to exit External CheckIn. "
  73.                       "This menu is unavailable now.",
  74.         /* [3] */     "Use this menu to check an external file in and to exit External CheckIn. "
  75.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  76.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  77.         /* [5] */     "Use this command to check an external file in.",
  78.         /* [6] */     "Use this command to check an external file in. "
  79.                     "Not available now for some strange reason.",
  80.         /* [7] */     "Use this command to exit External CheckIn.",
  81.         /* [8] */     "Use this command to exit External CheckIn. "
  82.                     "Not available now for some strange reason."
  83.     }
  84. };
  85.  
  86. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  87.     {    /* array StringArray: 3 elements */
  88.         /* [1] */    "Click here to dismiss this dialog.",
  89.         /* [2] */    "This text describes the error that occured.",
  90.         /* [3] */    "This error ID gives more specific details of the error."
  91.     }
  92. };
  93.  
  94. resource 'STR#' (2001, purgeable) {    /* progress info */
  95.     {    /* array StringArray: 1 element */
  96.         /* [1] */    "checking in “<1>”",
  97.         /* [2] */    "checking out “<1>”",
  98.         /* [3] */    "copying “<1>”",
  99.         /* [4] */    "canceling checkout of “<1>”"
  100.     }
  101. };
  102.  
  103. resource 'STR#' (2002, purgeable) {    /* stuff */
  104.     {    /* array StringArray: 1 element */
  105.         /* [1] */    "Please locate the Projector file you want to replace with “<1>”…",
  106.     }
  107. };
  108.  
  109. resource 'hmnu' (129, purgeable) {    /* File */
  110.     HelpMgrVersion, 0, 0, 0,
  111.     HMSkipItem {    /* no missing items */    },
  112.     {    /* array HMenuArray: 4 elements */
  113.         HMStringResItem {    /* Menu Title */
  114.             129, 1,
  115.             129, 2,
  116.             129, 3,
  117.             129, 4
  118.         },
  119.         HMStringResItem {    /* Open File… */
  120.             129, 5,
  121.             129, 6,
  122.             0, 0,
  123.             0, 0
  124.         },
  125.         HMStringResItem {    /* Quit */
  126.             129, 7,
  127.             129, 8,
  128.             0, 0,
  129.             0, 0
  130.         },
  131.     }
  132. };
  133.  
  134. resource 'BNDL' (128, purgeable) {
  135.     'pdec',
  136.     0,
  137.     {    /* array TypeArray: 2 elements */
  138.         /* [1] */
  139.         'FREF',
  140.         {    /* array IDArray: 2 elements */
  141.             /* [1] */ 0, 128,
  142.             /* [2] */ 1, 129
  143.         },
  144.         /* [2] */
  145.         'ICN#',
  146.         {    /* array IDArray: 2 elements */
  147.             /* [1] */ 0, 128,
  148.             /* [2] */ 1, 0
  149.         }
  150.     }
  151. };
  152.  
  153. data 'pdec' (0) {
  154.     "External CheckIn - Free software by Tim Maroney!"
  155. };
  156.  
  157. resource 'FREF' (128) { 'APPL', 0, "" }; 
  158. resource 'FREF' (129) { '****', 1, "" }; 
  159.  
  160.  
  161. /*
  162.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  163.     systems such as Control Tower & QuicKeys in determing what events an application
  164.     supports.
  165.     
  166.     In this one, we simply tell it we support the required events, since that is all
  167.     we do.  If you add additional events, you MUST consult the AETE documentation
  168.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  169.     has undergone a NUMBER of chanes.
  170. */
  171. resource 'aete' (0, "Apple Events Terminology") {
  172.  
  173.     0x00,            /* major version number in BCD */
  174.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  175.     english,        /* descriptions are in english */
  176.     roman,            /* use roman language script system */
  177.     
  178.     {    /* array Suites: 1 elements */
  179.     
  180.         /*******************************************************
  181.         [1] -- The part that show we do the required AppleEvents
  182.         *******************************************************/
  183.  
  184.         "Required Suite",
  185.         "Events that every application should support",
  186.         'reqd',
  187.         1,            /* suite level */
  188.         1,            /* suite version */
  189.         
  190.         {
  191.             /* array Events: 0 elements */
  192.         },
  193.         
  194.         {
  195.             /* array Classes: 0 elements */
  196.         },
  197.         
  198.         {
  199.             /* array ComparisonOps: 0 elements */
  200.         },
  201.         
  202.         {
  203.             /* array Enumerations: 0 elements */
  204.         },
  205.     }
  206. };
  207.